HTTPSocket.Get Method

Requests the content from the specified URL. The PageReceived event will execute when the data has been retrieved.

Syntax

HTTPSocket.Get URL, [File], [Timeout]


Parameters

URL

String

File (Optional)

FolderItem

Timeout (Optional)

Integer


If a FolderItem is passed, the data will be downloaded to that file. The DownloadComplete event will execute when the response data has been retrieved.

If the optional Timeout parameter (seconds) is used, REALbasic will wait the specified number of seconds for the page. When using the Timeout parameter, the page will be retrieved in a synchronous manner. If Timeout is set to zero, then there will be no timeout period and the socket will wait until it receives the page or gets an error. Set the Yield property to True to allow for background activities while waiting.